package com.autumn.annotations.value.config;

import com.autumn.annotations.value.value.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * ClassName: ValueConfig
 *
 * @Description:
 * @Author: wangqiuyang
 * @Date: 2022/1/26 10:17 上午
 * History:
 * <author>          <time>          <version>          <desc>
 * wangqiuyang    2022/1/26 10:17 上午   @Version 1.0        描述
 */
@Configuration
@PropertySource(value = "classpath:/value.properties")
public class ValueDemoConfig {

    @Bean(name = "person")
    public Person person() {
        return new Person();
    }
}
